Fix types in tomtom.
authorrobertl <robertl>
Sat, 26 Jul 2008 16:38:41 +0000 (16:38 +0000)
committerrobertl <robertl>
Sat, 26 Jul 2008 16:38:41 +0000 (16:38 +0000)
tomtom.c

index 28be8eeb9f2d6f7dd943733960caeffff03e98d6..661787a2ff43823257482523f56da8ab0c67a6f3 100644 (file)
--- a/tomtom.c
+++ b/tomtom.c
@@ -135,12 +135,11 @@ data_read(void)
               case 9:
                 recsize = read_char( file_in ) + 6;
                 if (global_opts.debug_level >= 5)
-                  warning("Unknown record type 0x%x; skipping %d bytes.\n",
+                  warning("Unknown record type 0x%x; skipping %ld bytes.\n",
                           rectype, recsize);
-                fprintf(stderr, "Skipping %d at 0x%x\n", recsize, gbftell(file_in));
-                while (recsize--)
+                 while (recsize--)
                   (void) read_char( file_in );
-                  break;
+                 break;
           default:
                 if (global_opts.debug_level >= 1) {
                        warning("Unexpected waypoint record type: %d at offset 0x%x\n", rectype, gbftell(file_in) );